Repository navigation
P18 phase 1: ▶ Ausführen becomes ■ Stoppen while Python is busy - #19
Merged
Merged
Conversation
Speaks protocol version 4 with embeds that understand it: the embed says when Python is busy (glpython:busy), and the run button then sends glpython:stop, which restarts Python; the code stays. The button keeps its width, so the row doesn't move. With an older embed nothing changes. The macro now accepts the embed's answers in every version up to 4 (it answers in the version the macro last used), not only 1 and the newest, and sends each embed the newest version both understand. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Macro part of P18 phase 1. It needs glpython-edu/glpython-editor#29 (embed protocol version 4) to be merged and deployed first. Before that, nothing changes: an older embed doesn't announce
stop.Change
glpython:stop: Python restarts, the code stays, and the console notes it («Gestoppt. Python wurde neu gestartet.»).capabilities.stop. The macro sends each embed the newest version both understand (embedVersion()).Tested in the hosted LiaScript player, the macro pointed at #29's embed built locally:
while …: print(…)runswhile True: passtyped into the REPLmain/ #29Coordination with P17. #17, #18 and this branch merge together without conflicts (checked locally,
check-macropasses). I moved the busy handler next to, not into, #17's resize line.🤖 Generated with Claude Code